package com.cz.nongyetongv5.bean;

import java.io.Serializable;

/**
 * 检查单位
 */
public class ChouYanJiGou implements Serializable {

	private String id = null;

	private String name;

	private String code = null;

	private String addTime = null;

	private String modifyTime = null;

	private String deleteTime = null;

	private String tel;

	/**
	 * 检测是否允许删除
	 */
	private boolean isAllowRemove = true;

	public String getName() {

		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public ChouYanJiGou(String id, String name, String code) {
		this.id = id;
		this.name = name;
		this.code = code;
	}

	public ChouYanJiGou(String id, String name, String code, String addTime,
						String modifyTime, String deleteTime, String tel) {
		this.id = id;
		this.name = name;
		this.code = code;
		this.addTime = addTime;
		this.modifyTime = modifyTime;
		this.deleteTime = deleteTime;
		this.tel = tel;
	}
	public void setId(String id) {
		this.id = id;
	}
	public void setTel(String tel) {
		this.tel = tel;
	}
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public ChouYanJiGou(String id, String name) {
		this.id = id;
		this.name = name;
	}

	public ChouYanJiGou() {
	}

	@Override
	public boolean equals(Object o) {

		boolean result = false;

		if (o != null) {

			if (o instanceof ChouYanJiGou) {

				ChouYanJiGou other = (ChouYanJiGou) o;

				if (!result) {
					if (other.getName() != null && this.getName() != null) {

						if (other.getName().equals(this.getName())) {

							result = true;
						}

					}
				}

			}

		}

		return result;

	}

	public boolean isAllowRemove() {
		return isAllowRemove;
	}

	public ChouYanJiGou setAllowRemove(boolean isAllowRemove) {
		this.isAllowRemove = isAllowRemove;

		return this;
	}

	public String getId() {
		return id;
	}


	public String getAddTime() {
		return addTime;
	}

	public void setAddTime(String addTime) {
		this.addTime = addTime;
	}

	public String getModifyTime() {
		return modifyTime;
	}

	public void setModifyTime(String modifyTime) {
		this.modifyTime = modifyTime;
	}

	public String getDeleteTime() {
		return deleteTime;
	}

	public void setDeleteTime(String deleteTime) {
		this.deleteTime = deleteTime;
	}

	public String getTel() {
		return tel;
	}



}
